package org.kzwl.comm.pojo.dto.comment;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

@Data
@ApiModel("评论")
public class CommentDTO {

    @ApiModelProperty("评论")
    private Integer cuCommentId;

    @ApiModelProperty("评论对象")
    private Integer cuExtId;

    @ApiModelProperty("评论用户")
    private Integer cuUserId;

    @ApiModelProperty("分值")
    private Integer cuUserScore;

    @ApiModelProperty("评论内容")
    private String cuCommentText;

    @ApiModelProperty("创建时间")
    private LocalDateTime cuCommentCreateDate;

    @ApiModelProperty("父级")
    private Integer cuCommentParent;

    @ApiModelProperty("用户名")
    private String cuUsername;

    @ApiModelProperty("头像")
    private String cuUserImage;

    @ApiModelProperty("点赞数量")
    private Integer cuAgreeNumber;

    @ApiModelProperty("是否点赞 0-否 1-是")
    private Integer isAgree = 0;

    @ApiModelProperty("子集评论")
    public List<CommentDTO> list = new ArrayList<>();

}
